﻿@model IEnumerable<Microsoft.Workflow.Client.WorkflowInstanceInfo>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.CreationTime)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.InstanceName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LastModified)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ScopePath)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UserStatus)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.WorkflowName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.WorkflowStatusDetails)
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @item.CreationTime
        </td>
        <td>
            @item.InstanceName
        </td>
        <td>
            @item.LastModified
        </td>
        <td>
            @item.ScopePath
        </td>
        <td>
            @item.UserStatus
        </td>
        <td>
            @item.WorkflowName
        </td>
        <td>
            @item.WorkflowStatusDetails -- @item.WorkflowStatus
        </td>
    </tr>
}

</table>
